<#include "../head.ftl">
<div class="page_title">销售机会管理&nbsp; &gt; 编辑销售机会</div>
<div class="button_bar">
    <button class="common_button" onclick="help('');">帮助</button>
    <button class="common_button" onclick="window.history.go(-1)">返回</button>
    <button class="common_button" onclick="document.forms[0].submit()">保存</button>
</div>
<form action="${base}/refer/save" method="post">
    <input type="hidden" name="createuser.id" value="${user.id}"/>
    <table class="query_form_table">
        <tr>
            <th>编号</th>
			<td></td>
            <th>机会来源</th>
            <td>
                <input type="text" name="opportunity" size="20"/></td>
        </tr>
        <tr>
            <th>客户名称</th>
            <td><input type="text" name="name" /><span class="red_star">*</span></td>
            <th>成功机率（%）</th>
            <td><input type="text" name="probability" /><span class="red_star">*</span></td>
        </tr>
        <tr>
            <th>概要</th>
            <td colspan="3"><input  type="text" name="outline"  size="52" /><span class="red_star">*</span></td>
        </tr>
        <tr>
            <th>联系人</th>
            <td><input type="text" name="contacts"  size="20" /></td>
            <th>联系人电话</th>
            <td><input type="text" name="telephone"  size="20" /></td>
        </tr>
        <tr>
            <th>机会描述</th>
            <td colspan="3"><textarea rows="6" cols="50" name="describes"></textarea><span class="red_star">*</span></td>
        </tr>
        <tr>
            <th>创建人</th>
            <td><input type="text" value="${user.name}" readonly size="20" /><span class="red_star">*</span></td>
		<th>创建时间</th>
		<td><input type="text" id="t1" name="createtime" value="" readonly size="20" /><span class="red_star">*</span></td>
        </tr>
    </table>
    <br />
    <table disabled class="query_form_table" id="table1">
        <tr>
            <th>指派给</th>
            <td>
                <select name="appointUser.id">
                <option value="">请选择...</option>
					<#list userList as user>
					    <option value="${user.id}">${user.name}</option>
					</#list>
                </select>
                <span class="red_star">*</span></td>
            <th>指派时间</th>
            <td>
                <input type="test" id="t2"  value="" readonly size="20" /><span class="red_star">*</span></td>
        </tr>
    </table>
    <script>
        setCurTime('t1');
        setCurTime('t2');
    </script>
</form>
</body>
</html>